package org.jeecg.modules.charge.entity;

import lombok.Data;
import org.jeecg.entity.charge.ChargeFeeitem;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

//收费项目的树状结构
@Data
public class ChargeFeeitemTree implements Serializable {
	private static final long serialVersionUID = 1L;

	private String id;

	private String feeCode;

	private String feeName;

	private String feeCategory;

	private String feeCategoryname;

	private String delFlag;

	private String createBy;

	private Date createTime;

	private String updateBy;

	private Date updateTime;

	//----------新加-------------------
	private String key;

	private String value;

	private String title;

	private List<ChargeFeeitemTree> children=new ArrayList<ChargeFeeitemTree>();;
	public ChargeFeeitemTree(){}

	public ChargeFeeitemTree(ChargeFeeitem chargeFeeitem){
		this.key = chargeFeeitem.getId();
		this.value = chargeFeeitem.getId();
		this.title = chargeFeeitem.getId()+"|"+chargeFeeitem.getFeeName();
		this.id = chargeFeeitem.getId();
		this.feeCategory = chargeFeeitem.getFeeCategory();
//		this.feeCategoryname = chargeFeeitem.getFeeCatename();
//		this.feeCode=chargeFeeitem.getFeeCode();
		this.feeName=chargeFeeitem.getFeeName();
		this.delFlag = chargeFeeitem.getDelFlag();
		this.createBy = chargeFeeitem.getCreateBy();
		this.createTime = chargeFeeitem.getCreateTime();
		this.updateBy = chargeFeeitem.getUpdateBy();
		this.updateTime = chargeFeeitem.getUpdateTime();
	}

}
